import request from '@/utils/request'

// 查询评测资源监控列表
export function listEvaluationMonitor(query) {
  return request({
    url: '/training/evaluationMonitor/list',
    method: 'get',
    params: query
  })
}

// 查询评测资源监控详细
export function getEvaluationMonitor(id) {
  return request({
    url: '/training/evaluationMonitor/' + id,
    method: 'get'
  })
}

// 新增评测资源监控
export function addEvaluationMonitor(data) {
  return request({
    url: '/training/evaluationMonitor',
    method: 'post',
    data: data
  })
}

// 修改评测资源监控
export function updateEvaluationMonitor(data) {
  return request({
    url: '/training/evaluationMonitor',
    method: 'put',
    data: data
  })
}

// 删除评测资源监控
export function delEvaluationMonitor(id) {
  return request({
    url: '/training/evaluationMonitor/' + id,
    method: 'delete'
  })
}
